package org.jeecg.modules.gqHealth.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.gqHealth.entity.GqUserCard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 用户卡管理
 * @Author: jeecg-boot
 * @Date:   2024-05-12
 * @Version: V1.0
 */
public interface GqUserCardMapper extends BaseMapper<GqUserCard> {

    @Select("select  count(*) from gq_card_manager WHERE ISNULL(active_time)")
    Integer selectActiveTotal();

    @Select("select  count(*) from gq_card_manager WHERE active_time is not null ")
    Integer selectNotActiveTotal();


    @Select("select  count(*) from gq_hospital_info")
    Integer selectHospitalTotal();

    @Select("select  count(*) from sys_user WHERE third_id='1'")
    Integer selectUserTotal();
}
